import { DefaultThemeLocaleOptions } from "vuepress";

export const zhCNLocale: DefaultThemeLocaleOptions = {
  selectLanguageText: '语言',
  selectLanguageAriaLabel: '语言',
  selectLanguageName: '简体中文',
  contributorsText: '贡献者',
  lastUpdatedText: '最后更新时间',
  tip: '提示',
  warning: '警告',
  danger: '危险',
  notFound: [
    '未找到页面'
  ],
  backToHome: '返回首页',

  repo: 'https://gitee.com/iscastcse/riscv-porting-wiki',
  repoLabel: '在 Gitee 上查看',
  docsRepo: 'https://gitee.com/iscastcse/riscv-porting-wiki',
  docsBranch: 'master',
  docsDir: 'docs',
  editLink: true,
  editLinkText: '编辑本页面',
  // editLinkPattern: ':repo/-/edit/:branch/:path',
  
  navbar: [
    {
      text: '友情链接',
      children: [
        {
          text: 'ISCAS',
          link: 'http://www.iscas.ac.cn',
        }
      ]
    },
  ],
  sidebar: {
    '/': [
      {
        text: '简介',
        link: '/',
        collapsible: true,
        children: [
          '/CONTRIBUTING'
        ],
      },
      {
        text: '入门',
        link: '/01_introduction/00_introduction',
        collapsible: true,
        children: [
          '/01_introduction/01_memory-model',
          '/01_introduction/02_dev-board-diff',
          '/01_introduction/03_rv-isa-module',
        ],
      },
      {
        text: '通用调整',
        link: '/02_common/00_introduction',
        collapsible: true,
        children: [
          '/02_common/01_is-project-ready-for-multi-arch',
          '/02_common/02_file-structure',
          '/02_common/03_directory-structure',
          '/02_common/04_testcase',
        ],
      },
      {
        text: 'C/C++ 程序',
        link: '/03_cxx-program/00_introduction',
        collapsible: true,
        children: [
          '/03_cxx-program/01_inline-asm',
          '/03_cxx-program/02_macro',
          '/03_cxx-program/03_hex-const',
          '/03_cxx-program/04_intrinsic',
          '/03_cxx-program/05_func-multi-versioning',
          '/03_cxx-program/06_syscall',
        ],
      },
      {
        text: '汇编程序',
        link: '/04_asm-program/00_introduction',
        collapsible: true,
        children: [
        ],
      },
      {
        text: '编译配置文件',
        link: '/05_compile-config/00_introduction',
        collapsible: true,
        children: [
          '/05_compile-config/01_rpmbuild',
          '/05_compile-config/02_makefile',
          '/05_compile-config/03_cmake',
          '/05_compile-config/04_autoconf',
          '/05_compile-config/05_qmake',
          '/05_compile-config/06_others',
        ],
      },
      {
        text: '其它编程语言',
        link: '/06_others/00_introduction',
        collapsible: true,
        children: [
          '/06_others/01_rust',
          '/06_others/02_go',
          '/06_others/03_python',
          '/06_others/04_others',
        ],
      },
    ],
  },
}
